﻿using Simple.Repository.Models.ClassRoom;

namespace Simple.Services;

public class ClassRoomOutputModel : ModelBase
{
    /// <summary>
    /// 教室主键Id
    /// </summary>
    public Guid? Id { get; set; }

    /// <summary>
    /// 教室名称
    /// </summary>
    [Required(ErrorMessage = "教室名称是必输的")]
    public string? CRoomName { get; set; } = "";

    /// <summary>
    /// 教室编号
    /// </summary>
    [Required(ErrorMessage = "教室编号是必输的")]
    public string? CRoomCode { get; set; } = "";

    /// <summary>
    /// 教室描述
    /// </summary>
    public string? Desc { get; set; } = "";

    /// <summary>
    /// 教室地址或位置
    /// </summary>
    public string? CRoomAddress { get; set; }

    /// <summary>
    /// 教室状态
    /// </summary>
    [Required(ErrorMessage = "教室状态是必输的")]
    public bool CRoomState { get; set; }

    /// <summary>
    /// 责任人
    /// </summary>
    public string? ResponsiblePerson { get; set; }

    /// <summary>
    /// 二维码
    /// </summary>
    public string? QRcode { get; set; }

    public override void ConfigureMapper(Profile profile)
    {
        profile.CreateMap<GardenHouseClassRoom, ClassRoomOutputModel>();

        profile.CreateMap<ClassRoomOutputModel, GardenHouseClassRoom>();

    }
}

public class ClassRoomChangeStatus
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public Guid? Id { get; set; }

    /// <summary>
    /// 教室状态
    /// </summary>
    public bool? CRoomState { get; set; }
}
